package com.wpml.cloud.classroom.handler;

import com.wpml.cloud.classroom.msg.Message;
import com.wpml.cloud.classroom.msg.MessageType;
import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description: 心跳消息处理器
 * @Author: ZhangLuo
 * @Email: 1946430@qq.com
 */
@Slf4j
@Component
public class HeartHandler implements MsgHandler {

    @Override
    public void handleMsg(Message msg, Channel chanel) {
        // 暂时不处理, 只要收到, 保证写请求, 不至于断开连接
    }

    @Override
    public String getMsgId() {
        return MessageType.HEART;
    }
}
